<template>
    <div class="query">
        <div class="title">
            {{ title }}
        </div>
        <div class="options">
            <slot style="float: right;">默认内容</slot>
        </div>
    </div>
</template>

<script>
export default {
    props: ["title"],
    data() {
        return {
        }
    }
}
</script>

<style lang="scss" scoped>
.query {
    width: 100%;
    display: flex;
    border: 1px solid #009688;
    border-radius: 3px;
    height: 100%;
    justify-content: center;
    align-items: center;

    .title {
        flex: auto;
        padding: .625rem .9375rem;
        color: #0096a7;
        text-align: center;
        font-weight: bolder;
        font-size: 0.875rem;
        height: auto;
        line-height: 100%;
        border-right: 1px solid #009688;

    }

    .options {
        flex: auto;
        height: auto;
        font-size: 0.875rem;
        text-align: center;
        align-items: center;
        color: #333;
        overflow: hidden;
    }
}
</style>